package game.targets;

import com.badlogic.gdx.math.Vector3;

public class MathFuncs {

	//get a point in front of or behind this distance from the start position
	public static Vector3 getFrontOrBackPosition(Vector3 startPos, Vector3 currentDir, float distance){
		Vector3 dir=new Vector3(currentDir);
		dir.nor();
		dir.scl(-distance);
		Vector3 newPos=new Vector3(startPos);
		newPos=dir.sub(newPos);
		return newPos;
	}
	
	public static void printVector(Vector3 vec, String id){
		System.out.println(id+ ": x "+vec.x+" y "+vec.y+" z "+vec.z);
	}
}
